package com.angel.service;

import java.util.List;
import com.angel.bean.BabyInfo;
import com.angel.bean.dto.BabyInfoDto;
import org.apache.ibatis.annotations.Param;

public interface BabyInfoService{

    int insert(BabyInfo babyInfo);

    int insertSelective(BabyInfo babyInfo);

    int insertList(List<BabyInfo> babyInfos);

    int update(BabyInfo babyInfo);

    BabyInfo findOne(BabyInfo babyInfo);

    List<BabyInfo> findAll(BabyInfo babyInfo);

    /**
     * 进行字段的模糊搜索
     * @param babyInfo
     * @return
     */
    List<BabyInfoDto> searchBabyInfo(BabyInfo babyInfo);

    int delete(BabyInfo babyInfo);

    List<BabyInfoDto> findAllAndUser(@Param("babyInfo")BabyInfo babyInfo);
}
